package com.haidechizi.i18n.code.generator.common.message.translate.mapping;

import java.util.Map;

/**
 * @author wangdejun
 */
public abstract class BaseLanguageMapping implements LanguageMapping {

    /**
     * 设置语言的绑定关系
     */
    @Override
    public void languageMappingBounding() {
        Map<String, String> bounding = doLanguageMappingBounding();
        LanguageMappingHolder.putAllBounding(bounding);
    }

    protected abstract Map<String, String> doLanguageMappingBounding();
}
